import request from '@/utils/request.js';


// 发布需求
export function addDemand(data){
	return request.post('/equipment/demand/add', data, true)
}

// 需求大厅
export function demandHall(data){
	return request.post('/equipment/demand/list', data, true)
}

// 需求详情
export function getDemand(data){
	return request.post('/equipment/demand/detail', data, true)
}

// 编辑需求
export function editDemand(data){
	return request.post('/equipment/demand/edit', data, true)
}

// 删除需求
export function deleteDemand(data){
	return request.post('/equipment/demand/delete', data, true)
}

// 上下架
export function changeStatus(data){
	return request.post('/equipment/demand/changeStatus', data, true)
}


// 首页最新需求
export function indexNewDemand(data){
	return request.post('/equipment/demand/newList', data, true)
}
